# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy

# 新浪分类导航类
class SinaItem(scrapy.Item):
    # define the fields for your item here like:
    firstClass = scrapy.Field()#一级导航名称
    secondClass = scrapy.Field()# 二级导航名称
    className = scrapy.Field()#分类名称
    url=scrapy.Field()#分类链接

# 当当图书信息类
class DangdangItem(scrapy.Item):
    # define the fields for your item here like:
    title = scrapy.Field()#标题
    bookUrl=scrapy.Field()#图书链接
    price = scrapy.Field()# 价格
    price_pre = scrapy.Field()  # 原价
    discount=scrapy.Field()#折扣
    author = scrapy.Field()#作者
    date=scrapy.Field()#出版日期
    place=scrapy.Field()#出版社
    num=scrapy.Field()#评论数
    imgName=scrapy.Field()#图片存储名称
    imgUrl = scrapy.Field()  # 图片链接
    intro = scrapy.Field()  # 简介
    dataindex=scrapy.Field() # 记录爬取第几条数据
